﻿using HongStone.Dto;
using HongStone.Repository;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HongStone.Service
{
    public class EquipmentBll
    {
        private readonly EquipmentDal _equipmentDal;
        public EquipmentBll(EquipmentDal equipmentDal)
        {
            _equipmentDal = equipmentDal;
        }
        /// <summary>
        /// 绑定楼层
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        public ResultData BindHome(int id)
        {
           return _equipmentDal.BindHome(id);
        }
        /// <summary>
        /// 显示消防风机
        /// </summary>
        /// <param name="louid"></param>
        /// <param name="danid"></param>
        /// <param name="cengid"></param>
        /// <param name="state"></param>
        /// <returns></returns>
        public ResultData ShowFireFan(int louid, int danid, int cengid, int state,string homenumber)
        {
            return _equipmentDal.ShowFireFan(louid, danid, cengid, state,homenumber);
        }
    }
}
